package com.example.api.util;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 老白
 */
@AllArgsConstructor
@Getter
public enum ErrCodeEnum {
    Nil(0, "默认状态码"),
    NOT_OBJECT(10001,"对象不存在"),
    NOT_STATUS_ENUM_TYPE(10002,"StatusEnum类型不存在"),
    ERR_MEETING_PREPARE_START(10003,"距离会议开始不足20分钟，不能删除会议"),
    ERR_MEETING_DELETE_REVIEW(10004,"只能删除待审批和未开始的会议"),
    ERR_MEETING_DELETE_CREATOR(10005,"只能申请人删除该会议"),
    ERR_MEETING_FLOW_NOT_EXIST(10006,"流程不存在"),
    ERR_MEETING_MEETING_ROOM(10007,"会议地点不能为空"),
    ERR_ALIPAY_ORDER_FAIL(10008,"生成支付订单失败"),
    ERR_RULE_DATE_FAIL(10009,"startDate和endDate只能同时为空，或者不为空"),
    ERR_SAVE_DATE_FAIL(10010,"请假开始时间不能晚于或者等于截止时间"),
    ERR_SAVE_DATE_JIAO_FAIL(10011,"请假时间有交集"),
    ERR_DELETE_OR_UPDATE_FAIL(10012,"不能操作不属于自己的记录"),
    ERR_USERNAME_FAIL(10013,"帐户不存在"),
    ERR_PASSWORD_FAIL(10014,"密码错误"),
    ERR_ROOT_EXIST_FAIL(10015,"无法绑定超级管理员账号"),
    ERR_CODE_NOT_EXIST_FAIL(10015,"激活验证码不存在"),
    ERR_KEY_EXIST_FAIL(10016,"键值存在"),
    ERR_DAY_EXIST_FAIL(10017,"日期重复"),
    ERR_FACE_NOT_MATCH_FAIL(10018,"人脸不匹配"),
    ERR_TIME_OUT_MATCH_FAIL(10019,"超出考勤时间段，无法考勤"),
    ERR_FACE_NOT_EXIST_FAIL(10020,"不存在人脸模型"),
    ERR_CHECKIN_FAIL(10021,"签到失败"),
    ERR_NOT_AGENT_CHECKIN_FAIL(10022,"不可以重复签到"),
    ERR_NOT_IN_OUR_FAIL(10023,"只能查询考勤之后日期的数据"),
    ERR_DELETE_WAGE_FAIL(10024,"员工尚未离职，不可删除"),
    ERR_WAGE_RECORD_FAIL(10025,"添加工资记录失败"),
    ERR_WAGE_UPDATE_USER_FAIL(10026,"不能更换用户更新薪资"),
    ERR_PAPER_ADD_FAIL(10027,"不可重复提交日报"),
    ERR_PAPER_UPDATE_FAIL(10028,"不可修改他人日报"),
    END(99999,"穷举最后一个异常");

    private Integer code ;
    private String desc ;
}
